package com.qk.management.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qk.common.PageResult;
import com.qk.domin.business.BusinessDO;
import com.qk.dto.business.BusinessPoolDTO;
import com.qk.dto.business.BusinessQueryDTO;
import com.qk.dto.business.BusinessUpdateDTO;
import com.qk.entity.Business;
import com.qk.vo.business.BusinessVO;

import java.util.List;

/**
 * @author 16778
 * @date 2025/10/14 19:58
 * @description
 */
public interface BusinessService extends IService<Business> {
    void insert(Business business);

    PageResult<BusinessDO> selectByPage(BusinessQueryDTO dto);

    void assign(Integer businessId, Integer userId);

    BusinessVO getWithTrackRecordByBusinessId(Integer id);

    void updateWithBusinessTrackRecordByBusinessId(BusinessUpdateDTO dto);

    void convertBackToFake(Integer id);

    void convertToCustomer(Integer id);

    PageResult<Business> pool(BusinessPoolDTO dto);
}
